package com.qf.mappers;

import com.qf.pojo.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/*
杨威
2021/12/31
17:44
*/
public interface CategoryMapper {

    void addCategory(Category category);

    int updateCategory(Category category);

    Category selectById(Long cId);

    Category selectByName(String cName);
    //查询所有
    List<Category> selectAllCategories();

    List<Category> selectAllEnableCategories();

    List<Category> selectCategoriesByNameLike(String cName);

    int deleteCategoriesByIds(@Param("ids") List<Long> ids);
}
